//
//  UIView+Frame.h
//  新浪微博
//
//  Created by apple on 14/11/21.
//  Copyright (c) 2014年 itcast. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, CJQViewBorder) {
    viewBorderTop = 1 << 1,     //2
    viewBorderBottom = 1 << 2,  //4
    viewBorderLeft = 1 << 3,    //8
    viewBorderRight = 1 << 4    //16
};

@interface UIView (Frame)

// @property如果写在分类里面就不会生成成员属性,只会生成get,set方法

// 快速设置控件的frame
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;

@property (nonatomic, assign) CJQViewBorder viewBorder;
@end
